<cfcomponent displayname="svnService" output="false" hint="I live to authenticate users.">


<!---
	Above is all injected stuff
 --->

	<cffunction name="init" returntype="any" output="false" hint="Constructor">
		<cfargument name="svnConfiguration" required="true" />
		<cfset variables._config = arguments.svnConfiguration/>
		<cftry>
		<cfset variables.svnbrowser = createObject("component","actionpacks.cfjasper.model.cfdiff.svnbrowser").init(getConfigSetting("RepositoryURL"),getConfigSetting("Username"),getConfigSetting("Password"))>
			<cfcatch >
				<cfdump var="#cfcatch#"><cfabort>
			</cfcatch>
		</cftry>
		<cfreturn this />
	</cffunction>

	<cffunction name="getSvnBrowser" access= "public" returntype="any" output="false">	
		<cfreturn variables.svnbrowser />
	</cffunction>
		
	<cffunction name="getConfigSetting" access="private" returntype="string" output="false">
		<cfargument name="name" required="true" type="string" />
		<cfreturn variables._config.getConfigSetting(arguments.name) />
	</cffunction>

	<cffunction name="setConfigSetting" access="private" returntype="string" output="false">
		<cfargument name="name" required="true" type="string" />
		<cfreturn variables._config.setConfigSetting(arguments.name) />
	</cffunction>
			
</cfcomponent>